package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {
    //查询科室信息 根据（hoscode、depcode）
    Department getByHoscodeAndDepcode(String hoscode, String depcode);
    //根据医院编号hoscode查询所有科室信息
    List<Department> getByHoscode(String hoscode);
    //根据医院编号，科室编号查询科室名称
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
